//
//  Extension + UIlabel.swift
//  SinaMicroBlogSwift2
//
//  Created by dqw on 15/8/3.
//  Copyright © 2015年 itcast. All rights reserved.
//

import UIKit

extension UILabel {
    
    // MARK: - 扩展类的注意事项：1. convenience  2. self.init.
    convenience init(text: String = "", color: UIColor, fontSize: CGFloat) {
        self.init()
        
        self.text = text
        textColor = color
        font = UIFont.systemFontOfSize(fontSize)
        numberOfLines = 0
        sizeToFit()
        
    }
}
